$.ajax({
    url:"/student/oneStudentScore.do",
    type:"post",
    data:{
        id:$.cookie("studentId")
    },
    success:function(value){
        console.log(value)
        $(".top span").html($.cookie("studentName")+"的成绩信息")
        var data=value;
        $("tbody").empty();
        for(var i=0;i<data.length;i++){
            $("tbody").append(
                "<tr>"+
                "<td>"+data[i].course_name+"</td>"+
                "<td>"+data[i].score+"</td>"+
                "</tr>"
            )
        }
    },
    error:function(){
        alert("请联系管理员！");
    }
})
$(".no").on("click",function(){
    location.href="/student/returnOneStudentInfro.do"
})